<!DOCTYPE html>
<html lang="ko">
<head>
	<meta charset="UTF-8">
	<title>Calendar</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- Bootstrap -->
	<link href="../css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
	<div class="container">
		<div class="row">
        	<div class="span12">
        	<form action="calendar.php" method="post">
	<?php # Script 2.6 - calendar.php
	
	// This script makes three pull-down menus
	// for an HTML form: months, days, years.

	// Make the months array:
	$months = array(1=>'January','February','March','April','May','June','July','August','September','October','November','December');

	// Make the days and yeaers arrays:
	$days = range(1, 31);
	$years = range(2008, 2018);

	// Make the months pull-down menu:
	echo '<select name="month">';
	foreach ($months as $key => $value) {
		echo "<option value=\"$key\">$value</option>\n";
	}
	echo '</select>';

	// Make the days pull-down menu:
	echo '<select name="day">';
	foreach ($days as $value) {
		echo "<option value=\"$value\">$value</option>\n";
	}
	echo '</select>';

	// Make the years pull-down menu:
	echo '<select name="year">';
	foreach ($years as $value) {
		echo "<option value=\"$value\">$value</option>\n";
	}
	echo '</select>';

	?>
			<form>
			</div>
		</div>
	</div>
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="../js/bootstrap.min.js"></script>
</body>
</html>